.container {
  width: 98% !important;
  background-color: white;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  padding: 25px;
  position: relative;
  overflow: hidden;
}

.calendar-container {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 30px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0px;
  /* background: #f8fafc; */
  border-bottom: 1px solid #eaeff5;
}

.calendar-title {
  font-size: 1.4rem;
  color: #2c3e50;
  font-weight: 600;
}

.calendar-nav span {
  padding: 9px 10px;
  margin-right: 10px;
  border-radius: 8px;
  background-color: rgb(118, 129, 141);
  color: white;
  cursor: pointer;
}

.calendar-nav button {
  background: white;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  width: 100%;
  border: #EAEFF5 solid 1px;
}

.week-header {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #f5f7fa;
  font-weight: 600;
  color: #606266;
  border-bottom: 1px solid #eaeff5;
}

.week-header-cell {
  padding: 12px 0;
  text-align: center;
  font-size: 0.95rem;
}

.calendar-day {
  min-height: 110px;
  border-right: 1px solid #eaeff5;
  border-bottom: 1px solid #eaeff5;
  position: relative;
  transition: background 0.2s;
  cursor: pointer;
  overflow: hidden;
}

.calendar-day:hover {
  background-color: #f8fafc;
}

.calendar-day:last-child {
  border-right: none;
}

.day-header {
  width: 100%;
  display: flex;
  justify-content: right;
  align-items: center;
  margin-bottom: 8px;
}

.day-date {
  display: flex;
  font-weight: 500;
  color: #606266;
  font-size: 14px;
}

.current-day .day-date {
  background: #409eff;
  height: 18px;
  color: white;
  /* width: 30px; */
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
}

.other-month {
  background-color: #fafafa;
  color: #c0c4cc;
}

.other-month .day-date {
  color: #c0c4cc;
}

.event-list {
  padding-top: 5px;
  max-height: none;
  overflow-y: visible;
}

.event-item {
  height: 25px;
  padding: 5px 8px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  position: relative;
  transition: all 0.2s;
  line-height: 1.4;
  cursor: pointer;
}

.event-item:hover {
  transform: translateX(2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.event-time {
  font-weight: bold;
  margin-right: 4px;
  flex-shrink: 0;
}

.event-content {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 不同类型任务的颜色样式 */
.event-type1 {
  background: #ecf5ff;
  color: #409eff;
}

.event-type2 {
  background: #f0f9eb;
  color: #52c41a;
}

.event-type3 {
  background: #fff2e8;
  color: #fa8c16;
}

.event-type4 {
  background: #f6f3f9;
  color: #722ed1;
}

.event-type5 {
  background: #fff1f0;
  color: #f5222d;
}

.add-task-btn {
  position: absolute;
  bottom: 10px;
  right: 20px;
  background: #409eff;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(64, 158, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.add-task-btn:hover {
  transform: rotate(90deg) scale(1.1);
  background: #66b1ff;
}

.task-dialog {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.dialog-body {
  padding: 15px 25px;
}

.form-section {
  width: 100%;
  margin-bottom: 25px;
}

.form-title {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.form-title span {
  width: 25%;
  font-weight: 500;
}

.form-title div {
  width: 100%;
}

.task-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dcdfe6;
  border-radius: 6px;
  font-size: 1rem;
  transition: border 0.3s;
}

.task-input:focus {
  border-color: #409eff;
  outline: none;
}

.error-message {
  display: flex;
  justify-content: left;
  color: #f5222d;
  font-size: 0.85rem;
  min-height: 20px;
  margin-left: 70px;
}

.w100 {
  width: 100%;
}

.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

@media (max-width: 768px) {
  .calendar-grid {
    grid-template-columns: repeat(7, 1fr);
  }

  .week-header {
    grid-template-columns: repeat(7, 1fr);
  }

  .calendar-day {
    min-height: 100px;
    padding: 8px 4px;
  }

  .day-date {
    font-size: 0.8rem;
  }

  .event-item {
    font-size: 0.7rem;
    padding: 3px 5px;
  }
}

.calendar-week {
  display: contents;
}

/* 表单样式 */
.dialog-body {
  padding: 16px 0;
}

.form-section {
  margin-bottom: 16px;
}

.form-item {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-weight: 500;
  color: #333;
}

.form-content {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}
.fromcontent{
  width: 100%;
}
.tree-actions {
  margin-bottom: 8px;
  display: flex;
  gap: 10px;
}
/* 
.error-message {
  color: #ff4d4f;
  font-size: 12px;
  margin-top: 4px;
} */

.task-dialog .ant-modal-body {
  padding: 20px 24px;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .task-dialog {
    width: 90% !important;
    max-width: none;
  }
}

.width80 {
  width: 80%;
}